package com.kpa.demo.data.repository

import com.kpa.demo.data.api.ApiHelper
import com.kpa.demo.data.api.ApiService
import com.kpa.demo.data.http.ServiceCreator

class MainRepository() {
    private lateinit var mApiHelper: ApiHelper
    init {
        mApiHelper = ApiHelper(ServiceCreator.createService(ApiService::class.java))
    }
    suspend fun bigEye() = mApiHelper.driver1()
    suspend fun minEye() = mApiHelper.driver2()
    suspend fun driver11() = mApiHelper.driver11()
    suspend fun driver12() = mApiHelper.driver12()
    suspend fun driver13() = mApiHelper.driver13()
    suspend fun driverA0() = mApiHelper.driverA0()
    suspend fun driverA90() = mApiHelper.driverA180()
    suspend fun driverA180() = mApiHelper.driverA180()
    suspend fun driverB60() = mApiHelper.driverB60()
    suspend fun driverB0() = mApiHelper.driverB0()
    suspend fun driverB90() = mApiHelper.driverB90()
    suspend fun driverB180() = mApiHelper.driverB180()
    suspend fun leftUp() = mApiHelper.driverA0()
    suspend fun leftDown() = mApiHelper.driverA90()

    suspend fun rightUp() = mApiHelper.driverB180()
    suspend fun rightDown() = mApiHelper.driverB90()
}